import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  
  {
    path: 'article',
    loadChildren:'./module/article/article.module#ArticleModule',
    // loadChildren:'./module/article/article.module#ArticleModule'
  },
  {
    path: 'user',
    // loadChildren:'./module/article/article.module#ArticleModule',
    loadChildren:'./module/user/user.module#UserModule'
  },
  {
    path: 'product',
    // loadChildren: './/module/product/product.module#ProductModule'
    loadChildren: './module/product/product.module#ProductModule'
  },
  {
    path: '**',
    redirectTo:'/article',
    pathMatch:'prefix'
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
